#include<stdio.h>
int main()
{

    int sign(int x);
    int x,y;
    printf("Enter x: ");
    scanf("%d",&x);

    y=sign(x);

    printf("\nsign(%d)=%d",x,y);




}
int sign(int x)
{
    int z;
    if(x<0)
        z=-1;
    else
        if(x==0)
            z=0;
        else
            z=1;
        return (z);




}

